#include "device_tv.h"
#include "ui_device_tv.h"

DeviceTV::DeviceTV(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DeviceTV)
{
    ui->setupUi(this);
//    qDebug() << QStringLiteral("OpenSSL支持情况:") << QSslSocket::supportsSsl();
    view=new QWebView(this);
    ui->verticalLayout->addWidget(view);
    ui->url_text->setText("https://example.com/");
    this->setStyleSheet("#frame_background{background-color:rgba(244, 252, 255, 0.4);border-radius:50px}");
}


DeviceTV::~DeviceTV()
{
    delete ui;
}

void DeviceTV::on_pushButton_clicked()
{
    url = ui->url_text->text();
    view->load(QUrl(url));
    view->show();
}
